'use strict';
define(function(require, exports, module) {

	exports.init = function(app) {

		app.register.service("navService", ['$http', function($http) {
			return {
				queryList: function(func) {
					$http({
						method: "GET",
						url: "./app/test/data/nav.json"
					}).then(function(resp) {
						if (typeof func == 'function') func(resp.data);
					});
				}
			};

		}]);

	};

});